package com.cakemallproject.pojo.mapperObj;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Goods {
    private Integer gid;
    private Integer tid;
    private String name;
    private String cover;
    private String image1;
    private String image2;
    private BigDecimal price;
    private String intro;
    private Integer stock;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Integer status;

    @Override
    public String toString() {
        return "Goods{" +
                "gid=" + gid +
                ", tid=" + tid +
                ", name='" + name + '\'' +
                ", cover='" + cover + '\'' +
                ", image1='" + image1 + '\'' +
                ", image2='" + image2 + '\'' +
                ", price=" + price +
                ", intro='" + intro + '\'' +
                ", stock=" + stock +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", status=" + status +
                '}';
    }
}
